package com.efast.cafe.portal.service.company;

import java.util.Date;

import com.efast.cafe.portal.remote.company.PortalCompanyRegisterActivateCodeService;



/******************************************************************************
 * @File name : PortalCompanyRegisterActivateCodeService.java
 * 
 * @Author : fxm
 * 
 * @Date : 2016-6-28
 * 
 * @Copyright Notice: Copyright (c) 2016 Efast Serv. All Rights Reserved. This
 *            software is published under the terms of the Efast Software
 *            License version 1.0, a copy of which has been included with this
 *            distribution in the LICENSE.txt file.
 * 
 * 
 *            ------------------------------------------------------------------
 *            ---------- Date Who Version Comments 2016-6-28 下午8:50:19 fxm 1.0
 *            Initial Version
 *****************************************************************************/
public interface IPortalCompanyRegisterActivateCodeService extends PortalCompanyRegisterActivateCodeService{

	/**
	 * 企业自注册 在激活时间过期时 同时未激活的状态下 重新生成激活码和激活时间 同时抛出异常提示
	 * 因为在同一个service中所有方法都是一个事物 无法新启一个事物 在抛出异常时 事物会回滚 
	 * 故新增一个service在方法上新启一个事物@Transactional(propagation=Propagation.REQUIRES_NEW)
	 * @Date        :      2016-6-28
	 * @param activate_code
	 * @param nextDate
	 * @param portal_company_register_id
	 */
	public void updateCompanyRegisterActivateCode(String activate_code,
			Date nextDate, Long portal_company_register_id);
}
